const router = require('koa-router')()

const userControllers = require('../controllers/user')

router.prefix('/users') //给当前路由添加前缀： /users

//查询用户列表
router.post('/userlist', userControllers.queryUserList)

//删除用户
router.post('/deleteuser', userControllers.deleteUser)


//添加用户
router.post('/adduser', userControllers.addUser)

//修改用户
router.post('/updateuser', userControllers.updateUser)


module.exports = router
